#define _CRT_SECURE_NO_WARNINGS 1

#include "SList.h"

void TestSList1()
{
	SLTNode* plist = NULL;
	SListPushFront(&plist, 1);
	SListPushFront(&plist, 2);
	SListPushFront(&plist, 3);
	SListPushFront(&plist, 4);
	SListPushFront(&plist, 5);

	SListPrintf(plist);

	SLTNode* pos1 = SListFind(plist, 3);
	if (pos1 != NULL)
	{
		SListInsert(&plist, pos1, 30);
	}

	SListPrintf(plist);

	SLTNode* pos2 = SListFind(plist, 5);
	if (pos2 != NULL)
	{
		SListInsert(&plist, pos2, 50);
	}

	SListPrintf(plist);
}

int main()
{
	TestSList1();
	return 0;
}